<!-- 针车员工产量：蹇泽阳 -->
<template>
  <div class="app-container">
    <Find :OriginalFilter="{ static: true }" :formList="formList" @findClicked="findClicked" />
    <Find :searchImg="false" :OriginalFilter="{ static: true }" :formList="formList2" @findClicked="findClicked2" />
    <div class="flex mt10" style="width: 100%; background-color: white">
      <el-card shadow="never" :body-style="{ padding: '5px 10px 5px' }">
        <h1 class="f16">{{ $t(`Print.InquireAboutTheProductionDetails`) }}</h1>
        <Table
          :tableHeader="tableHeader"
          :tableData="tableData"
          class="mt10"
          :isLoading="isLoading"
          @currentRow="currentRow"
          :summaryData="summaryData"
          summary
        />
        <el-card shadow="never" :body-style="{ padding: '5px' }">
          <PageModule :PageData="{ total, buttonS: true }" @pageSizeChange="handleSizeChange" @pageChange="handleCurrentChange" />
        </el-card>
      </el-card>
      <el-card shadow="never" :body-style="{ padding: '5px 10px 5px' }">
        <div class="flex AIC">
          <h1 class="f16">{{ $t(`Print.DepositDetails`) }}</h1>
          <span style="margin-left: 10px; color: red" class="f12">{{
            $t(`Print.PSRedIndicatesThatThereIsAnOverproductionReportInACertainOrderPleaseCheckTheCommand`)
          }}</span>
        </div>
        <Table :tableHeader="tableHeader2" :tableData="tableData2" class="mt10" :isLoading="isLoading2" :summaryData="summaryData2" summary />
        <el-card shadow="never" :body-style="{ padding: '5px' }">
          <PageModule :PageData="{ total: total2, buttonS: true }" @pageSizeChange="handleSizeChange2" @pageChange="handleCurrentChange2" />
        </el-card>
      </el-card>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import fileRequest from '@/utils/fileRequest'
import JMessage from '@/utils/JMessage'
export default defineComponent({
  name: 'NeedleCarEmployeeOutput'
})
</script>
<script lang="ts" setup>
import { i18n, Jzhcn } from '@/i18n'
import type { formListType } from '@/components/Find/index.vue'
import { ref } from 'vue'
import { ElMessage } from 'element-plus'
import service from '@/utils/request'
import { debounce } from 'lodash'
import { onMounted, watch } from 'vue'

const formList = ref<any>([
  {
    type: 'input',
    inputPlaceholder: '指令',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '型体',
    inputValue: ''
  },
  {
    type: 'date',
    dateLabel: '日期',
    dateValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '部门',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'input',
    inputPlaceholder: '工号',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '姓名',
    inputValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '类型',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'input',
    inputPlaceholder: '序号',
    inputValue: ''
  },
  {
    type: 'input',
    inputPlaceholder: '工序',
    inputValue: ''
  },
  {
    type: 'checkbox',
    checkboxLabel: '未检核',
    checked: false
  },
  {
    type: 'checkbox',
    checkboxLabel: '已检核',
    checked: true
  },
  {
    type: 'button',
    checkboxLabel: '置空',
    bgColor: '#1890FF'
  },
  {
    type: 'button',
    checkboxLabel: '导出明细'
  },
  {
    type: 'button',
    checkboxLabel: '导出指令产量'
  },
  {
    type: 'button',
    checkboxLabel: '搜索',
    bgColor: '#623315'
  }
])

const formList2 = ref<any>([
  {
    type: 'input',
    inputPlaceholder: '指令',
    inputValue: ''
  },
  {
    type: 'select',
    selectValue: '',
    selectP: '缴库单位',
    selectLabel: '',
    selectOptions: []
  },
  {
    type: 'date',
    dateLabel: '收料日期',
    dateValue: ''
  },
  {
    type: 'button',
    checkboxLabel: '置空',
    bgColor: '#1890FF'
  },
  {
    type: 'button',
    checkboxLabel: '导出'
  },
  {
    type: 'button',
    checkboxLabel: '搜索',
    bgColor: '#623315'
  }
])

// 表一模块
// 表一按钮
const findClicked = async (content: string) => {
  if (content === '置空') {
    formList.value.forEach((item: any) => {
      item.inputValue = ''
      item.selectValue = ''
      item.dateValue = ''
    })
  }
  if (content === '导出明细') {
    const res = (await fileRequest.post(`/SewingProductionData/exportYieldDetails`, {
      deptName: formList.value
        .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '部门')
        ?.selectValue.split('  ')[0],
      deptNo: formList.value
        .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '部门')
        ?.selectValue.split('  ')[1],
      endDate: formList.value.find((item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '日期')
        ?.dateValue?.[1],
      lotNo: formList.value.find(
        (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '指令'
      )?.inputValue,
      orderType: formList.value.find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '类型')
        ?.selectValue,
      processName: formList.value.find(
        (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '工序'
      )?.inputValue,
      seqNo: formList.value.find(
        (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '序号'
      )?.inputValue,
      startDate: formList.value.find((item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '日期')
        ?.dateValue?.[0],
      style: formList.value.find(
        (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '型体'
      )?.inputValue,
      workName: formList.value.find(
        (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '姓名'
      )?.inputValue,
      workNo: formList.value.find(
        (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '工号'
      )?.inputValue,
      pageNum: currentPage.value,
      pageSize: pageSize.value,
      cfmFlag: cfmFlag() //	有无欠数(Y/N)	string	body	true
    })) as any
    const link = document.createElement('a') // 利用a标签自定义下载文件名
    let blob = new Blob([res.data]) // 创建Blob对象，设置文件类型
    link.style.display = 'none'
    //设置连接
    link.href = window.URL.createObjectURL(blob)
    const FileName = decodeURI(res.headers['content-disposition'].split(`utf-8''`)[1])
    link.download = FileName //自定义文件名字
    document.body.appendChild(link)
    //模拟点击事件
    link.click()
    document.body.removeChild(link)
  }
  if (content === '导出指令产量') {
    const res = (await fileRequest.post(`/SewingProductionData/exportLotNoYield`, {
      lotNo: currentTableRow.value.lotNo
    })) as any
    const link = document.createElement('a') // 利用a标签自定义下载文件名
    let blob = new Blob([res.data]) // 创建Blob对象，设置文件类型
    link.style.display = 'none'
    //设置连接
    link.href = window.URL.createObjectURL(blob)
    const FileName = decodeURI(res.headers['content-disposition'].split(`filename=`)[1])
    link.download = FileName //自定义文件名字
    document.body.appendChild(link)
    //模拟点击事件
    link.click()
    document.body.removeChild(link)
  }
  if (content === '搜索') {
    getTableList()
  }
}
const tableData = ref([])
const isLoading = ref(true)
// 总计
interface summaryDataType {
  index: number
  num: number | undefined
}
const summaryData = ref<summaryDataType[]>([
  {
    index: 10,
    num: 0
  }
])
// 分页器
const currentPage = ref(1)
const pageSize = ref(40)
const total = ref(0)
const handleSizeChange = (val: number) => {
  pageSize.value = val
  getTableList()
}
const handleCurrentChange = (val: number) => {
  currentPage.value = val
  getTableList()
}
// 表格计算函数
const cfmFlag = () => {
  const Unaudited = formList.value.find((item: any) => item.type === 'checkbox' && i18n.global.t(item.checkboxLabel) === '未检核')
  const Audited = formList.value.find((item: any) => item.type === 'checkbox' && i18n.global.t(item.checkboxLabel) === '已检核')
  if (!Unaudited || !Audited) return
  if (Unaudited.checked && Audited.checked) {
    return ''
  } else if (Unaudited.checked) {
    return '2'
  } else if (Audited.checked) {
    return '3'
  } else {
    ElMessage('必须至少选择一项')
    Unaudited.checked = true
    Audited.checked = true
    return ''
  }
}
// 获取表数据
const getTableList = debounce(async () => {
  isLoading.value = true
  let tableDataList = await service.post<any, any>('/SewingProductionData/getYieldDetails', {
    deptName: formList.value
      .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '部门')
      ?.selectValue.split('  ')[0],
    deptNo: formList.value
      .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '部门')
      ?.selectValue.split('  ')[1],
    endDate: formList.value.find((item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '日期')
      ?.dateValue?.[1],
    lotNo: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '指令'
    )?.inputValue,
    orderType: formList.value.find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '类型')
      ?.selectValue,
    processName: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '工序'
    )?.inputValue,
    seqNo: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '序号'
    )?.inputValue,
    startDate: formList.value.find((item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '日期')
      ?.dateValue?.[0],
    style: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '型体'
    )?.inputValue,
    workName: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '姓名'
    )?.inputValue,
    workNo: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '工号'
    )?.inputValue,
    pageNum: currentPage.value,
    pageSize: pageSize.value,
    cfmFlag: cfmFlag() //	有无欠数(Y/N)	string	body	true
  })
  isLoading.value = false
  tableData.value = tableDataList.list.map((item: any) => {
    item.slipDate = item.slipDate.split(' ')[0]
    item.seqNo = item.seqNo
    item.sysDate = item.sysDate.split(' ')[0]
    return item
  })
  total.value = tableDataList.total
  currentRow()

  let sum = await service.post<any, any>('/SewingProductionData/getYieldDetailsCount', {
    deptName: formList.value
      .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '部门')
      ?.selectValue.split('  ')[0],
    deptNo: formList.value
      .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '部门')
      ?.selectValue.split('  ')[1],
    endDate: formList.value.find((item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '日期')
      ?.dateValue?.[1],
    lotNo: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '指令'
    )?.inputValue,
    orderType: formList.value.find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '类型')
      ?.selectValue,
    processName: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '工序'
    )?.inputValue,
    seqNo: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '序号'
    )?.inputValue,
    startDate: formList.value.find((item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '日期')
      ?.dateValue?.[0],
    style: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '型体'
    )?.inputValue,
    workName: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '姓名'
    )?.inputValue,
    workNo: formList.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '工号'
    )?.inputValue,
    pageNum: currentPage.value,
    pageSize: pageSize.value,
    cfmFlag: cfmFlag() //	有无欠数(Y/N)	string	body	true
  })
  summaryData.value[0].num = sum.qytCount
}, 500)
onMounted(() => {
  getTableList()
})
// watch(
//   () =>
//     formList.value.map((item: any) => {
//       item.selectValue, item.inputValue, item.dateValue, item.checked
//     }),
//   () => {
//     getTableList()
//   }
// )
const tableHeader = ref([
  {
    label: '类型',
    prop: 'orderType2'
  },
  {
    label: '日期',
    prop: 'slipDate'
  },
  {
    label: '指令',
    prop: 'lotNo'
  },
  {
    label: '型体',
    prop: 'style'
  },
  {
    label: '订单量',
    prop: 'sum'
  },
  {
    label: '序号',
    prop: 'seqNo'
  },
  {
    width: 100,
    label: '工序名称',
    prop: 'processName'
  },
  {
    label: '部门',
    prop: 'deptName'
  },
  {
    label: '工号',
    prop: 'workId'
  },
  {
    label: '姓名',
    prop: 'workName'
  },
  {
    label: '数量',
    prop: 'qty'
  },
  {
    label: '输入员',
    prop: 'sysUser'
  },
  {
    label: '输入日期',
    prop: 'sysDate'
  },
  {
    label: '检核标记',
    prop: 'cfmFlag'
  }
])
// 点击表给另一张表传数据
const currentTableRow = ref({}) as any
const currentRow = async (row: any = tableData.value[0] ? tableData.value[0] : {}) => {
  currentTableRow.value = row
}

// 表二模块
// 表二按钮
const findClicked2 = async (content: string) => {
  if (content === '置空') {
    formList2.value.forEach((item: any) => {
      item.inputValue = ''
      item.selectValue = ''
      item.dateValue = ''
    })
  }
  if (content === '导出') {
    const res = (await fileRequest.post(`/SewingProductionData/exportInventoryPaymentDetails`, {
      lotNo: formList2.value.find(
        (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '指令'
      )?.inputValue,
      deptName: formList2.value
        .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '缴库单位')
        ?.selectValue.split('  ')[0],
      deptNo: formList2.value
        .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '缴库单位')
        ?.selectValue.split('  ')[1],
      slipDateStart: formList2.value.find(
        (item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '收料日期'
      )?.dateValue?.[0],
      slipDateEnd: formList2.value.find(
        (item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '收料日期'
      )?.dateValue?.[1],
      pageNum: currentPage2.value,
      pageSize: pageSize2.value
    })) as any
    const link = document.createElement('a') // 利用a标签自定义下载文件名
    let blob = new Blob([res.data]) // 创建Blob对象，设置文件类型
    link.style.display = 'none'
    //设置连接
    link.href = window.URL.createObjectURL(blob)
    const FileName = decodeURI(res.headers['content-disposition'].split(`utf-8''`)[1])
    link.download = FileName //自定义文件名字
    document.body.appendChild(link)
    //模拟点击事件
    link.click()
    document.body.removeChild(link)
  }
  if (content === '搜索') {
    getTableList2()
  }
}
const tableData2 = ref([])
const isLoading2 = ref(true)
// 总计
interface summaryDataType {
  index: number
  num: number | undefined
}
const summaryData2 = ref<summaryDataType[]>([
  {
    index: 7,
    num: 0
  }
])
// 分页器
const currentPage2 = ref(1)
const pageSize2 = ref(40)
const total2 = ref(0)
const handleSizeChange2 = (val: number) => {
  pageSize2.value = val
  getTableList2()
}
const handleCurrentChange2 = (val: number) => {
  currentPage2.value = val
  getTableList2()
}
// 获取表数据
const getTableList2 = debounce(async () => {
  isLoading2.value = true
  let tableDataList = await service.post<any, any>('/SewingProductionData/getInventoryPaymentDetails', {
    lotNo: formList2.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '指令'
    )?.inputValue,
    deptName: formList2.value
      .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '缴库单位')
      ?.selectValue.split('  ')[0],
    deptNo: formList2.value
      .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '缴库单位')
      ?.selectValue.split('  ')[1],
    slipDateStart: formList2.value.find(
      (item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '收料日期'
    )?.dateValue?.[0],
    slipDateEnd: formList2.value.find(
      (item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '收料日期'
    )?.dateValue?.[1],
    pageNum: currentPage2.value,
    pageSize: pageSize2.value
  })
  isLoading2.value = false
  tableData2.value = tableDataList.list.map((item: any) => {
    if (Number(item.maxQty) > Number(item.qty)) {
      item.backgroundColor = 'red'
    }
    return item
  })
  total2.value = tableDataList.total
  // currentRow2()

  let sum = await service.post<any, any>('/SewingProductionData/getInventoryPaymentCount', {
    lotNo: formList2.value.find(
      (item: any) => item.inputPlaceholder && Jzhcn.Find[item.inputPlaceholder.split('.')[1] as keyof typeof Jzhcn.Find] === '指令'
    )?.inputValue,
    deptName: formList2.value
      .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '缴库单位')
      ?.selectValue.split('  ')[0],
    deptNo: formList2.value
      .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '缴库单位')
      ?.selectValue.split('  ')[1],
    slipDateStart: formList2.value.find(
      (item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '收料日期'
    )?.dateValue?.[0],
    slipDateEnd: formList2.value.find(
      (item: any) => item.dateLabel && Jzhcn.Find[item.dateLabel.split('.')[1] as keyof typeof Jzhcn.Find] === '收料日期'
    )?.dateValue?.[1],
    pageNum: currentPage2.value,
    pageSize: pageSize2.value
  })

  summaryData2.value[0].num = sum.countSum
}, 500)
const tableHeader2 = ref([
  {
    backgroundColor: true,
    width: 100,
    label: '缴库单位',
    prop: 'deptName'
  },
  {
    backgroundColor: true,
    label: '收料日期',
    prop: 'slipDate'
  },
  {
    backgroundColor: true,
    width: 100,
    label: '指令',
    prop: 'lotNo'
  },
  {
    label: '类型',
    prop: 'orderType2'
  },
  {
    label: '缴库量',
    prop: 'qty'
  },
  {
    label: '总道序',
    prop: 'seqCount'
  },
  {
    label: '已报道序',
    prop: 'seqDidCount'
  },
  {
    label: '已报产量',
    prop: 'minQty'
  },
  {
    width: 100,
    label: '工序已报最大产量',
    prop: 'maxQty'
  }
])
onMounted(() => {
  getTableList2()
})
// watch(
//   () =>
//     formList2.value.map((item: any) => {
//       item.selectValue, item.inputValue, item.dateValue, item.checked
//     }),
//   () => {
//     getTableList2()
//   }
// )

const getSelectList = async () => {
  const mtlDept = formList.value.find(
    (item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '部门'
  ) as any
  const mtlDept2 = formList2.value.find(
    (item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '缴库单位'
  ) as any
  const mtlDeps = await service.get<any, any>('/back/deptQuery')
  mtlDeps.forEach((Vendor: any) => {
    mtlDept.selectOptions.push({
      optionLabel: `${Vendor.deptName}  ${Vendor.deptNo}`,
      optionValue: `${Vendor.deptName}  ${Vendor.deptNo}`,
      optionKey: `${Vendor.deptNo} `
    })
    mtlDept2.selectOptions.push({
      optionLabel: `${Vendor.deptName}  ${Vendor.deptNo}`,
      optionValue: `${Vendor.deptName}  ${Vendor.deptNo}`,
      optionKey: `${Vendor.deptNo} `
    })
  })
  formList.value
    .find((item: any) => item.selectP && Jzhcn.Find[item.selectP.split('.')[1] as keyof typeof Jzhcn.Find] === '类型')
    ?.selectOptions?.push(
      {
        optionKey: `针车正单`,
        optionLabel: `针车正单`,
        optionValue: `针车正单`
      },
      {
        optionKey: `针车补单`,
        optionLabel: `针车补单`,
        optionValue: `针车补单`
      }
    )
}
onMounted(() => {
  getSelectList()
})
</script>

<style lang="less" scoped></style>
